﻿using PowerGui.AddOn.Interfaces;
using Quest.PowerGUI.ScriptEditor.Shared.Debugger;

namespace PowerGui.AddOn.Impl
{
    public class PipelineStateInfo : IPipelineStateInfo
    {
        private PipelineStateInfoEventArgs _args;

        internal  PipelineStateInfo(PipelineStateInfoEventArgs e)
        {
            _args = e;
        }

        public string ScriptFileName
        {
            get { return _args.ScriptFileName; }
        }

        public bool StopExecutionError
        {
            get { return _args.StopExecutionError; }
        }

        public int LineNumber
        {
            get { return _args.LineNumber; }
        }

        public int OffsetInLine
        {
            get { return _args.OffsetInLine; }
        }

        public string Message
        {
            get { return _args.Message; }
        }

        public string Source
        {
            get { return _args.Source; }
        }

        public string StackTrace
        {
            get { return _args.StackTrace; }
        }
    }
}
